import 'package:ls_work/net/response/response_data.dart';

class LeaveRecordList extends BaseListData{

    String? customerElderName;
    String? roomNumber;
    String? buildingNo;
    String? leaveReasonName;
    String? leaveTime;
    String? accompanyName;
    String? planBackTime;
    String? backTime;
    String? leaveRegistrantName;
    String? accompanyMobile;
    String? validSignName;
    dynamic id;
    String? createdDate;


    LeaveRecordList(
    { this.customerElderName,
      this.roomNumber,
      this.buildingNo,
      this.leaveReasonName,
      this.leaveTime,
      this.accompanyName,
      this.planBackTime,
      this.backTime,
      this.accompanyMobile,
      this.leaveRegistrantName,this.validSignName,this.id,this.createdDate});

    Map<String, dynamic> toJson() {
    return {
      'customerElderName': this.customerElderName,
      'roomNumber': this.roomNumber,
      'buildingNo': this.buildingNo,
      'leaveReasonName': this.leaveReasonName,
      'leaveTime': this.leaveTime,
      'accompanyName': this.accompanyName,
      'planBackTime': this.planBackTime,
      'backTime': this.backTime,
      'leaveRegistrantName': this.leaveRegistrantName,
      'accompanyMobile': this.accompanyMobile,
      'validSignName': this.validSignName,
      'createdDate': this.createdDate,
      'id': this.id,
    };
  }

  factory LeaveRecordList.fromJson(Map<String, dynamic> map) {
    return LeaveRecordList(
      customerElderName: map['customerElderName'] ,
      roomNumber: map['roomNumber'] ,
      buildingNo: map['buildingNo'] ,
      leaveReasonName: map['leaveReasonName'] ,
      leaveTime: map['leaveTime'] ,
      accompanyName: map['accompanyName'] ,
      planBackTime: map['planBackTime'] ,
      backTime: map['backTime'] ,
      leaveRegistrantName: map['leaveRegistrantName'] ,
      accompanyMobile: map['accompanyMobile'] ,
      validSignName: map['validSignName'],
      createdDate: map['createdDate'],
      id: map['id'],
    );
  }
}